<template>
  <p>暂无开发</p>
  <!-- 
    <div class="content">
    <input type="file" id="fileInput" multiple @change="handleFileSelect">
    <button @click="uploadFiles">上传多文件</button>
  </div>
   -->
</template>

<script>
import { deptSaves } from '../../aaa/index'

export default {
  data() {
    return {
      selectedFiles: [],
      name: '',
      email: '',
      formData: new FormData()
    };
  },
  methods: {
    handleFileSelect(event) {

      const files = event.target.files;
      this.selectedFiles = Array.from(files); // 转换为数组

      this.selectedFiles.forEach(file => {
        this.formData.append('files', file);
      });
      console.log(this.selectedFiles);
    },
    async uploadFiles() {
      deptSaves(this.formData).then(res => {
        console.log(res);
      })
    }
  }
};
</script>

<style scoped>
.content {
  height: 100%;
  width: 100%;
}
</style>